package com.alkaid.search.serice;

import com.alkaid.commons.ex.AnimeNotFoundException;
import com.alkaid.commons.ex.UnknownErrorException;
import com.alkaid.commons.param.anime.AnimePlay;

import java.util.List;

/**
 * @author Kylin
 */
public interface SearchService {
    /**
     * 搜索动漫列表
     *
     * @param query the query
     * @return the list
     * @throws UnknownErrorException  the unknown error exception
     * @throws AnimeNotFoundException the anime not found exception
     */
    List<AnimePlay> searchAnime(String query) throws UnknownErrorException, AnimeNotFoundException;
}
